package cn.tedu.csmall.product.pojo.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class AlbumAddNewParam implements Serializable {

    @NotNull(message = "添加失败，相册标题必须提交!")
    @ApiModelProperty(value = "相册标题",required = true,example = "足球相册")
    private String name;

    @NotNull(message = "添加失败,相册描述必须提交!")
    @ApiModelProperty(value = "相册描述",required = true,example = "足球的描述")
    private String description;

    @NotNull(message = "添加失败,相册排序必须提交")
    @Range(min = 1,max = 99,message = "排序必须在1~99之间")
    @ApiModelProperty(value = "相册的排序(只能1~99之间)",required = true,example = "25")
    private Integer sort;

}
